package com.macro.mall.commission.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户佣金账户Domain
 *
 * @author xuyanjun
 * @date 2019-12-11
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class UserAccount {

    /**
     * id
     */
    private Long id;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 余额(分)
     */
    private BigDecimal balance;

    /**
     * 累计收益
     */
    private BigDecimal total;

}
